package com.hd.trans.files.bean;

import androidx.annotation.NonNull;

/**
 * Author: yangtianwen
 * Time: 2021/12/27
 * Des: 媒体文件基类
 */
public class MediaEntity {
    private int mId;
    private String mName;
    private String mPath;
    private long mDate;
    private long mDuration;
    private long mSize;
    private boolean mIsDirectory;

    public MediaEntity() {
    }

    public MediaEntity(int id, String name, String path, long date, long duration, long size) {
        this.mId = id;
        this.mName = name;
        this.mPath = path;
        this.mDate = date;
        this.mDuration = duration;
        this.mSize = size;
    }

    @NonNull
    @Override
    public String toString() {
        return "MediaEntity{" +
                "mId=" + mId +
                ", mName='" + mName + '\'' +
                ", mPath='" + mPath + '\'' +
                ", mDate=" + mDate +
                ", mDuration=" + mDuration +
                ", mSize=" + mSize +
                ", mIsDirectory=" + mIsDirectory +
                '}';
    }

    public void setName(String mName) {
        this.mName = mName;
    }

    public void setPath(String mPath) {
        this.mPath = mPath;
    }

    public void setDate(long mDate) {
        this.mDate = mDate;
    }

    public void setDuration(long duration) {
        this.mDuration = duration;
    }

    public void setIsDirectory(boolean mIsDirectory) {
        this.mIsDirectory = mIsDirectory;
    }

    public int getId() {
        return mId;
    }

    public String getName() {
        return mName;
    }

    public String getPath() {
        return mPath;
    }

    public long getDate() {
        return mDate;
    }

    public long getDuration() {
        return mDuration;
    }

    public long getSize() {
        return mSize;
    }

    public boolean isDirectory() {
        return mIsDirectory;
    }
}
